package doc2db.interfaces.action.save;

/**
 *
 * @author yura
 */
public interface  Saver {

    /**
     * Save data from MyJEditorPane in some data format:
     * xl, doc, txt ..
     * @param fname name of file to save
     * @return trut if it saved and false in another way,
     * error message can get to call method getError();
     */
    public boolean save (String fname);


    /**
     * Text of error if it hapen
     * @return text of error if it hapen
     */
    public String err();
}
